package cn.yujian95.hospital;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author YuJian95  clj9509@163.com
 * @date 2020/1/18
 */

@MapperScan("cn.yujian95.hospital.mapper")
@ComponentScan(basePackages = {"cn.yujian95"})  // 就可以知道了我们common里面的swagger
@SpringBootApplication
public class HospitalApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(HospitalApplication.class, args);
    }

}
